		var c4sex = [{label:"男", value:"Male"}, {label:"女", value:"Female" }];
				
		var opt4bank = [
						{label:"招商银行", value:"CMB"},
						{label:"中国银行", value:"BC"}, 
						{label:"农业银行", value:"ABC"}, 
						{label:"民生银行", value:"CMBC"}, 
						{label:"交通银行", value:"BOC"},
						{label:"兴业银行", value:"CIB"},
						{label:"工商银行", value:"ICBC" }, 
						{label:"华夏银行", value:"HXB" }, 
						{label:"建设银行", value:"CCB" }
					];		
		var c4bank = { _options: opt4bank };
					
		var opt4type = [{label:"个人普卡", value:"11"}, {label:"白金卡", value:"12" }, {label:"钻石卡", value:"13" }];	
		var c4type = { _options: opt4type };
		
		var c4vip = {check:"true", uncheck:"false"};	
				
		var data = new Array();
		data.push({key: "1", id:"179371", name:"Zhang San", sex:"Female", birthday:"0", bank:"CMB", type:"12", card: "9555002112341111", vip: "true", inter:"D" ,aaa:true});			
		data.push({key: "2", id:"179392", name:"Li Si", sex:"Female", birthday:"11", bank:"CMB", type:"12", card: "9555002112342222", vip: "true", inter:"A",aaa:false});	
		data.push({key: "3", id:"180001", name:"Wang Wu", sex:"Female", birthday:"19831112", bank:"CMB", type:"13", card: "9555002112343333", vip: "true", inter:"B",aaa:true});
		
		for(var i=0; i<55; i++){
			var key = 4+i;
			var id = 18002 + i;
			data.push({key: key+"", id: id+"", name:"NAME", sex:"Male", birthday:"19801112", bank:"ICBC", type:"13", card: "9555002112344321", vip: "false", inter:"C",aaa:false});
		}	
		
		var colKey = new zxt.data.ColumnMeta("key", "KEY", "KEY", "label", true, false);
		var colId = new zxt.data.ColumnMeta("id", "ID", "ID", "label", true, false);
		var colName = new zxt.data.ColumnMeta("name", "NAME", "NAME", "label", false, false);				  
		var colSex = new zxt.data.ColumnMeta("sex", "SEX", "SEX", "label", false, false);		
		var colBir = new zxt.data.ColumnMeta("birthday", "BIRTH", "BIRTHDAY", "label", false, false);
		var colBank = new zxt.data.ColumnMeta("bank", "BANK", "BANK", "label", false, false);
		var colType = new zxt.data.ColumnMeta("type", "TYPE", "TYPE", "select", false, false);
		var colCard = new zxt.data.ColumnMeta("card", "CARD", "CARD", "label", false, false);
		var colVIP = new zxt.data.ColumnMeta("vip", "VIP", "VIP", "label", false, false);
		var colInt = new zxt.data.ColumnMeta("inter", "INTER", "INTER", "label", false, false);
		var aaa = new zxt.data.ColumnMeta("aaa", "aaa", "aaa", "checkbox", false, false);
		var tmodel = new zxt.data.ListTableModel(data, [colKey, colId, colName, colSex, colBir, colBank, colVIP, colType, colCard, colInt,aaa]);
		
		
		var data2 = new Array();
		data2.push({id:"179371", bank:"招商银行", category:"个人普卡", cardId:"9555511223344" });			
		data2.push({id:"179371", bank:"工商银行", category:"个人普卡", cardId:"9553333445566" });	
		data2.push({id:"180001", bank:"交通银行", category:"个人普卡", cardId:"9559987542876" });
		
							
		var col2Id = new zxt.data.ColumnMeta("id", "ID", "ID", "text", true, false);
		var col2BankN = new zxt.data.ColumnMeta("bank", "BANK", "BANK", "text", false, false);	
		var col2Category = new zxt.data.ColumnMeta("category", "CATEGORY", "CATEGORY", "text", false, false);	
		var col2CardId = new zxt.data.ColumnMeta("cardId", "CARDID", "CARDID", "text", false, false);			
		
		var tmodel2 = new zxt.data.ListTableModel(data2, [col2Id, col2BankN, col2Category, col2CardId]);
		
		
		var data3 = new Array();
		data3.push({label:"招商银行", value:"179371"});			
		data3.push({label:"工商银行", value:"179371"});	
		data3.push({label:"交通银行", value:"180001"});
		
							
		var col3Label = new zxt.data.ColumnMeta("label", "LABEL", "LABEL", "text", true, false);
		var col3Value = new zxt.data.ColumnMeta("value", "VALUE", "VALUE", "text", false, false);	
			
		
		var tmodel3 = new zxt.data.ListTableModel(data3, [col3Label, col3Value]);
		
		
		var tmodel4 = new zxt.data.TunnelTableModel("CODE1");
		tmodel4.method("query");
		var param = {codeType:"002",labelColumn:"2",valueColumn:"3"};
		tmodel4.setParam(param);
		
		var tmodel5 = new zxt.data.TunnelTableModel("CODE1");
		tmodel5.method("query");
		var param = {codeType:"001",labelColumn:"2",valueColumn:"3"};
		tmodel5.setParam(param);
		
		
		function configMainGrid(grid){				
			
			grid.rowClicked = function(dom, idx){
		    var t = grid.getRowData(idx);	      
		    $zxtUI.autoForm.setValue(t);
	      $zxtUI.autoForm.render();	 
	      
	      $zxtUI.layoutForm.setValue(t);
	      $zxtUI.layoutForm.render();	 
			}
			
			
			grid.rowDoubleClicked = function(dom, idx){
		          
			}
			
		};	